import request from '@/utils/request'

// export function guideCookbookMethodList() {
//   return request({
//     url: '/guide/cookbook/method/list',
//     method: 'get'
//   })
// }


// 查询美食菜谱分类列表
export function listCookbook(query) {
  return request({
    url: '/guide/cookbook/list',
    method: 'get',
    params: query
  })
}

// 查询美食菜谱分类详细
export function getCookbook(id) {
  return request({
    url: '/guide/cookbook/' + id,
    method: 'get'
  })
}

// 新增美食菜谱分类
export function addCookbook(data) {
  return request({
    url: '/guide/cookbook',
    method: 'post',
    data: data
  })
}

// 修改美食菜谱分类
export function updateCookbook(data) {
  return request({
    url: '/guide/cookbook',
    method: 'put',
    data: data
  })
}

// 删除美食菜谱分类
export function delCookbook(id) {
  return request({
    url: '/guide/cookbook/' + id,
    method: 'delete'
  })
}
